package com.feng.utils;

public enum HttpCodeEnum {

    EMAIL_NOT_NULL(601, "邮箱不能为空"),
    NICKNAME_NOT_NULL(602, "昵称不能为空"),
    PASSWORD_NOT_NULL(603, "密码不能为空"),

    EMAIL_EXIST(604,"邮箱已存在"),
    NICKNAME_EXIST(605,"昵称已存在"),

    EMAIL_ERROR(606,"邮箱格式错误或不存在"),

    EMAIL_OR_CODE_ERROR(607,"邮箱或验证码错误"),

    EMAIL_SEND_FREQUENT(608,"邮箱发送频繁"),

    CODE_IS_NOLL(609,"验证码为空"),
    EMAIL_NOT_EXIST(710,"邮箱不存在"),
    LOGIN_ERROR(711,"邮箱或密码错误"),
    CODE_IS_ERROR(712, "验证码错误"),
    FILE_TYPE_ERROR(713, "文件类型错误，请上传jpg或png文件"),

    FILE_UPLOAD_ERROR(714, "文件上传失败"),
    Id_NO_NULl(715,  "id不能为空"),
    NO_FIND_Article(716, "没有找到该文章"),

    ACCOUNT_ALREADY_DISABLED(717, "账号已被禁用,请联系管理员"),

    ROLE_NAME_EXIST(718, "角色名称已存在"),

    ROLE_KEY_EXIST(719, "权限字符已存在"),

    ARTICLE_NO__PERMISSION(720, "没有这篇文章的权限"),

    THIS_ARTICLE_NO(721, "没有这篇文章"),

    CATEGORY_NOT_EXIST(722, "该分类不存在"),

    CATEGORY_NAME_EXIST(723, "该分类名称已存在"),
    TAG_NAME_EXIST(724, "该标签名称已存在"),
    TAG_NOT_EXIST(725, "该标签不存在"),
    MENU_NAME_EXIST(726, "菜单名称已存在"),
    MENU_PATH_EXIST(727, "路由地址已存在"),
    MENU_COMPONENT_EXIST(728, "组件路径已存在"),
    MENU_ICON_EXIST(729, "图标已存在"),
    SUPPER_MENU_CANNOT_SELECT_ITSELF(730, "上级菜单不能选择自己"),
    SUBMENU_EXIST_CANNOT_DELETE(731, "该菜单下存在子菜单，不能删除"),
    ACCOUNT_NO__PERMISSION(731, "没有这个用户的权限"),
    COMMENT_NOT_NULL(732, "评论不能为空");
    private int code;
    private String message;

    HttpCodeEnum(int code, String message){
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
